<?php
/**
 * 
 */
namespace app\home\controller\user;

use app\home\controller\Base;

class Show extends Base
{

	public function index(){

		$pageData= ['title'=>'用户信息'];
		$this->assign('pageData',$pageData);
		return view();

	}

	public function upgrade(){
		$pageData= ['title'=>'原点升级'];
		$this->assign('pageData',$pageData);
		return view();
	}

	public function phone(){
		$member = session('member');
		if($member['is_phone_checked']!=1){
			// 手机未验证，绑定手机
			$pageData= ['title'=>'手机绑定'];
			$tpl = __FUNCTION__;
		}else{
			// 手机已验证，更改手机
			$pageData= ['title'=>'手机更改'];
			$tpl = 'phone_change';
		}
		$this->assign('pageData',$pageData);
		$this->assign('phone',$member['phone']);
		return view($tpl);
	}

	public function passwd(){
		$pageData= ['title'=>'帐号密码修改'];
		$this->assign('pageData',$pageData);
		return view();
	}

	public function safe_passwd(){
		$pageData= ['title'=>'交易密码修改'];
		$this->assign('pageData',$pageData);
		return view();
	}

	public function mail_send(){
		$pageData= ['title'=>'发送邮件'];
		$this->assign('pageData',$pageData);
		return view();
	}

	public function mail_out(){
		$pageData= ['title'=>'发件箱'];
		$this->assign('pageData',$pageData);
		return view();
	}

	public function mail_in(){
		$pageData= ['title'=>'收件箱'];
		$this->assign('pageData',$pageData);
		return view();
	}

}